package code.lewdy.app.notice;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 公告
 * @author liuding,2012-5-17
 *
 * $LastChangedDate$
 * $Author$ 
 */
@Entity
public class Notice
{
    private Long id;
    private Long ownerId;
    private String ownerName;
    private String title;
    private String content;
    private Date createDate;
    private int type; //公告类型 0-普通公告|1-滚动公告
    
    @Column(length=5000)
    public String getContent()
    {
        return content;
    }
    public void setContent(String content)
    {
        this.content = content;
    }
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreateDate()
    {
        return createDate;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }
    @Id
    @GeneratedValue
    public Long getId()
    {
        return id;
    }
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getOwnerId()
    {
        return ownerId;
    }
    public void setOwnerId(Long ownerId)
    {
        this.ownerId = ownerId;
    }
    @Column(length=50)
    public String getOwnerName()
    {
        return ownerName;
    }
    public void setOwnerName(String ownerName)
    {
        this.ownerName = ownerName;
    }
    @Column(length=100)
    public String getTitle()
    {
        return title;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }
	public void setType(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
}
